package fr.ordre66.vlcs.client;

import fr.ordre66.vlcs.utils.VlcsHttpClient;

public class SendVideoThread extends Thread {

	IHM ihm;

	public SendVideoThread(IHM ihm) {
		this.ihm = ihm;
	}

	public void run() {

		System.out.println("Start recording");
			ihm.getPlayer().startRecording();
			System.out.println("Stop recording");
			String path = "/tmp/flux.flv";
			VlcsHttpClient httpClient = new VlcsHttpClient();
			httpClient.sendData(path, "video", ihm.getConfigFrame().getLogin(), ihm.getConfigFrame().getPassword());
	}	
}
